<?php
session_start();
if(session_destroy())
{
 $url = $_GET['url'];
//header("Location: index.php");
 header("Location: $url");
}
?>
